﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCTaiKhoan.ascx.cs"
    Inherits="WebApplication.Admins.Controls.UCTaiKhoan" %>
<%@ Register Src="~/Controls/UC_pages.ascx" TagName="UC_pages" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="t_news">
    <div class="t_titles">
        Quản Lý Tin Tức</div>
    <div class="t_toolbar">
        <input id="Button1" type="button" value="Thêm Tài Khoản" class="buttons" onclick="location.href='EditTaiKhoan.aspx'"
            runat="server" />
        <asp:Button Text="Xóa Tài Khoản" ID="btnXoa" runat="server" CssClass="buttons" OnClick="btnXoa_Click" />
        <asp:Button Text="Tìm Kiếm" ID="btnTimKiem" runat="server" CssClass="buttons" 
            onclick="btnTimKiem_Click" />
        <br />
        <asp:Label Text="Tìm Theo Tên Đăng Nhập : " ID="lblTenDN" runat="server" /><asp:TextBox runat="server" ID="txtTimTenTK"  CssClass="textboxs"/> 
        <asp:Label Text="họ Tên: " ID="lblhoten" runat="server" />
        <asp:TextBox  CssClass="textboxs" runat="server" ID="txtHoTen" />
        <asp:Button Text="Tìm" ID="btnTim" runat="server" CssClass="buttons" 
            onclick="btnTim_Click"/>
    </div>
    <uc1:UC_pages ID="pagerTop" runat="server" Visible="false" />
    <table class="tables">
        <thead>
            <tr class="trs">
                <th class="cid">
                    <input type="checkbox" id="chkAll" />#
                </th>
                <th class="names">
                    Tên Tài Khoản
                </th>
                <th class="names">
                    Họ Tên
                </th>
                <th class="names">
                    Ngày Sinh
                </th>
                <th class="names">
                    Giới Tính
                </th>
                <th class="names">
                    Email
                </th>
                <th class="names">
                    Trạng Thái
                </th>
                <th class="names">
                    ID
                </th>
            </tr>
        </thead>
        <asp:Repeater runat="server" ID="repTaiKhoan">
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" name="Id" value='<%#Eval("IDTaiKhoan") %>' id="Id" />
                    </td>
                    <td>
                        <a href='EditTaiKhoan.aspx?Id=<%#Eval("IDTaiKhoan") %>'>
                            <%#Eval("TenTaiKhoan") %></a>
                    </td>
                    <td>
                        <%#Eval("HoTen") %>
                    </td>
                    <td>
                        <%#Eval("NgaySinh ", "{0:dd/MM/yyyy}")%>
                    </td>
                    <td>
                        <%#Eval("GioiTinh") %>
                    </td>
                    <td>
                        <%#Eval("Email") %>
                    </td>
                    <td>
                        <%#Eval("TrangThai") %>
                    </td>
                    <td>
                        <%#Eval("IDTaiKhoan") %>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <uc1:UC_pages ID="pagerBottom" runat="server" Visible="false" />
</div>
